import { loginRule } from '@/utils/rules';
import { LockOutlined } from '@ant-design/icons';
import { Form, FormInstance, Input } from 'antd';
const UpdatePassword = ({ form }: { form: FormInstance }) => {
  return (
    <div>
      <Form.Item name="password" rules={loginRule.passwordRule} hasFeedback>
        <Input
          prefix={<LockOutlined />}
          placeholder="新的登录密码"
          type="password"
        />
      </Form.Item>
      <Form.Item
        name="confirmPassword"
        rules={loginRule.confirmPasswordRule(form)}
        hasFeedback
      >
        <Input
          prefix={<LockOutlined />}
          type="password"
          placeholder="请确认输入新的登陆密码"
        />
      </Form.Item>
    </div>
  );
};

export default UpdatePassword;
